//
//  UPAlertPrivacyView.h
//  Uang Pasti
//
//  Created by 李永彬 on 2025/9/2.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class UPAlertPrivacyView;

@protocol UPAlertPrivacyViewDelegate <NSObject>
@optional
- (void)privacyPolicyView:(UPAlertPrivacyView *)view didTapHighlightText:(NSString *)text;
@end

@interface UPAlertPrivacyView : UIView

@property (nonatomic, weak) id<UPAlertPrivacyViewDelegate> delegate;
@property (nonatomic, strong, readonly) UIButton *checkButton;
@property (nonatomic, strong, readonly) UILabel *policyLabel;
@property (nonatomic, assign) BOOL isSelected;

- (instancetype)initWithPolicyText:(NSString *)text
                     highlightText:(NSString *)highlightText;

@end

NS_ASSUME_NONNULL_END
